namespace PetShop.Web.Controls
{
	using System;
	using System.Data;
	using System.Drawing;
	using System.Web;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;

	
	public partial  class NavBar : System.Web.UI.UserControl
	{
		
	
		public bool hidecategorymenu = false;

		protected void Page_Load(object sender, System.EventArgs e)
		{
			
			ShowLoggedInArea();
		}

		
		private void ShowLoggedInArea() {

			if (Request.IsAuthenticated != true) {
				
				areaLoggedIn.Visible = false;
				areaLoggedOut.Visible = true;

			} else {
				
				areaLoggedIn.Visible = true;
				areaLoggedOut.Visible = false;

			}
		}

	

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			
			
			
			InitializeComponent();
			base.OnInit(e);
		}
		
		
		
		
		private void InitializeComponent()
		{

		}
		#endregion
	}
}
